package com.hmys.api.service.impl;

import com.hmys.api.mapper.WebNewsTypeMapper;
import com.hmys.api.model.WebNewsType;
import com.hmys.api.service.WebNewsTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by chen365 on 2018/03/16.
 */
@Service
public class WebNewsTypeServiceImpl implements WebNewsTypeService {
    @Autowired
    private WebNewsTypeMapper webNewsTypeMapper;

    @Override
    public WebNewsType selectByPrimaryKey(Long id) {
        return webNewsTypeMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<WebNewsType> selectByBean(WebNewsType record) {
        return webNewsTypeMapper.selectByBean(record);
    }
}
